<?php
//武器组装者
class Builder{
	private $sniper;
	public function __construct(){
		$this->sniper = new Sniper();
	}
	
	public function build(){
		$this->sniper->setBullet('600');
		$this->sniper->setStock('适合远程射击');
		$this->sniper->setSight('光学瞄准器');
		return $this->sniper;
	}
}

